package com.cfl.ticket.fallback;

import java.util.ArrayList;

import org.springframework.stereotype.Component;

import com.cfl.model.City;
import com.cfl.model.Ticket;
import com.cfl.model.TicketNumber;
import com.cfl.ticket.feign.TicketFeign;
import com.cfl.utils.AppResponse;
import com.cfl.utils.Constant;

@Component
public class TicketFeignFallback implements TicketFeign{

	/**
	 * 获取我的车票
	 */
	public ArrayList<Ticket> findMyTickets(String uid, Integer page) {
		System.out.println("falback: ticketcloud-ticket-module find_my_tickets");
		return new ArrayList<Ticket>();
	}

	/**
	 * 添加车票
	 */
	public Boolean addTicket(Ticket ticket) {
		System.out.println("falback: ticketcloud-ticket-module add_ticket");
		return false;
	}
	
	/**
	 * 获取车次
	 */
	public TicketNumber findTicketnumber(String number) {
		System.out.println("falback: ticketcloud-ticket-module find_ticket_number");
		return null;
	}

	/**
	 * 获取城市
	 */
	public City findCityByName(String name) {
		System.out.println("falback: ticketcloud-ticket-module find_city_name");
		return null;
	}

	public ArrayList<TicketNumber> findTicketnumberByAll() {
		System.out.println("falback: ticketcloud-ticket-module findTicketnumberByAll");
		return null;
	}

	public TicketNumber findTicketnumberByTid(String tid) {
		System.out.println("falback: ticketcloud-ticket-module findTicketnumberByTid");
		return null;
	}

	/**
	 * 获取城市
	 */
	public City findCityByCid(String cid) {
		System.out.println("falback: ticketcloud-ticket-module findCityByCid");
		return null;
	}

	/**
	 * 获取所有城市
	 */
	public ArrayList<City> findCityByAll() {
		System.out.println("falback: ticketcloud-ticket-module findCityByAll");
		return new ArrayList<City>();
	}

}
